package com.xwaf.platform.system.auth.task.resolve;

import java.util.Locale;

import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;

import com.xwaf.platform.common.api.entity.ELUser;

public class OrderResolve implements Runnable {
	private static Logger logger = Logger.getLogger(OrderResolve.class);

	private String id;// 日志ID
	private String filePath;// 绝对路径
	private String errorName;// 错误文件名
	private String saveErrorUrl;// 错误文件路径
	private String saveErrorFile;// 错误的文件路径名
	private ELUser user;
	private ApplicationContext ctx;
	private Locale local;

	public OrderResolve(String id, String filePath, String errorName, String saveErrorUrl, String saveErrorFile,
			ELUser user, ApplicationContext ctx, Locale local) {
		this.id = id;
		this.filePath = filePath;
		this.errorName = errorName;
		this.saveErrorUrl = saveErrorUrl;
		this.saveErrorFile = saveErrorFile;
		this.user = user;
		this.ctx = ctx;
		this.local = local;
	}

	@Override
	public void run() {
		logger.info("order resolve start");
		logger.info("id=" + id);
		logger.info("filePath=" + filePath);
		logger.info("errorName=" + errorName);
		logger.info("saveErrorUrl=" + saveErrorUrl);
		logger.info("saveErrorFile=" + saveErrorFile);
		logger.info("user=" + user);
		logger.info("ctx=" + ctx);
		logger.info("local=" + local);
		logger.info("order resolve end");
	}

}
